package com.len.controller;

import com.len.base.BaseController;
import com.len.entity.SpBzjPrice;
import com.len.service.SpBzjPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("bzjPrice")
public class SpBzjPriceController extends BaseController<SpBzjPrice> {
    @Autowired
    private SpBzjPriceService spBzjPriceService;
    @RequestMapping("/update")
    public String update(SpBzjPrice spBzjPrice){
        try {
            spBzjPriceService.updateByPrimaryKey(spBzjPrice);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/save")
    public String save(SpBzjPrice spBzjPrice){
        try {
            spBzjPriceService.insert(spBzjPrice);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/show")
    public String show(SpBzjPrice spBzjPrice){
        try {
            spBzjPriceService.selectByPrimaryKey(spBzjPrice);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
